package com.simonall.listen;

import java.io.IOException;

import com.simonall.conf.PropertyProxy;
import com.simonall.utils.BusinessException;
import com.simonall.utils.PropertyLoader;

/**
 * 属性监听器
 * 
 * @author simonall
 */
public final class PropertyListener implements CustomListener {

	private final static String FILE_NAME = "application.properties";

	@Override
	public void mount() throws BusinessException {
		try {
			PropertyProxy.properties = PropertyLoader.load(FILE_NAME);
		} catch (IOException e) {
			e.printStackTrace(); //
		}
	}

}
